import {createI18n} from 'vue-i18n'
import zh_CN from './zh_CN/index.js'
import es_MX from './es_MX/index.js'
let defaultLocale = localStorage.getItem('locale')
/**
 * localeValue 默认语言
 * zh_CN 中文
 * en_IN 英文
 */
let obj = {}
let timer
let localeValue = defaultLocale  || 'zh_CN'
const i18n = createI18n({
    locale: localeValue,
    messages: {
        zh_CN: {
            ...zh_CN,
        },
        es_MX: {
            ...es_MX,
        },
    },
    missing: (value, key) => {

    }
});

export default i18n
